package com.baosight.risk.service.zbaa.entity;

import com.baosight.risk.base.entity.BaseEntity;
import com.baosight.risk.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * Table: T_ZBAA_TARGET
 */
@Data
@ApiModel
@Table(name = "T_ZBAA_TARGET")
public class ZbaaTarget extends BaseEntity {

    /**
     * 指标编号
     *
     * Table:     T_ZBAA_TARGET
     * Column:    TARGET_NO
     * Nullable:  true
     */
    @ApiModelProperty("指标编号")
    @Column(name = "TARGET_NO")
    @Excel(name="指标编号")
    private String targetNo;

    /**
     * 指标名称
     *
     * Table:     T_ZBAA_TARGET
     * Column:    TARGET_NAME
     * Nullable:  true
     */
    @ApiModelProperty("指标名称")
    @Column(name = "TARGET_NAME")
    @Excel(name="指标名称")
    private String targetName;

    /**
     * 指标说明
     *
     * Table:     T_ZBAA_TARGET
     * Column:    TARGET_DESC
     * Nullable:  true
     */
    @ApiModelProperty("指标说明")
    @Column(name = "TARGET_DESC")
    @Excel(name="指标说明")
    private String targetDesc;

    /**
     * 指标类型
     *
     * Table:     T_ZBAA_TARGET
     * Column:    TARGET_TYPE
     * Nullable:  true
     */
    @ApiModelProperty("指标类型")
    @Column(name = "TARGET_TYPE")
    @Excel(name="指标类型")
    private String targetType;

    /**
     * 指标类型说明
     *
     * Table:     T_ZBAA_TARGET
     * Column:    TARGET_TYPE_NAME
     * Nullable:  true
     */
    @ApiModelProperty("指标类型说明")
    @Column(name = "TARGET_TYPE_NAME")
    private String targetTypeName;

    /**
     * 指标周期（year-年；month月份
     *
     * Table:     T_ZBAA_TARGET
     * Column:    TARGET_PERIOD
     * Nullable:  true
     */
    @ApiModelProperty("指标周期（year-年；month月份")
    @Column(name = "TARGET_PERIOD")
    @Excel(name="指标周期（year-年；month月份")
    private String targetPeriod;

    /**
     * 指标周期说明
     *
     * Table:     T_ZBAA_TARGET
     * Column:    TARGET_PERIOD_NAME
     * Nullable:  true
     */
    @ApiModelProperty("指标周期说明")
    @Column(name = "TARGET_PERIOD_NAME")
    private String targetPeriodName;

    /**
     * 数据来源
     *
     * Table:     T_ZBAA_TARGET
     * Column:    SYS_SOURCE
     * Nullable:  true
     */
    @ApiModelProperty("数据来源")
    @Column(name = "SYS_SOURCE")
    private String sysSource;

    /**
     * 数据来源说明
     *
     * Table:     T_ZBAA_TARGET
     * Column:    SYS_SOURCE_NAME
     * Nullable:  true
     */
    @ApiModelProperty("数据来源说明")
    @Column(name = "SYS_SOURCE_NAME")
    private String sysSourceName;

    /**
     * 统计口径（全国、上海市）
     *
     * Table:     T_ZBAA_TARGET
     * Column:    RANGE_CODE
     * Nullable:  true
     */
    @ApiModelProperty("统计口径（全国、上海市）")
    @Column(name = "RANGE_CODE")
    private String rangeCode;

    /**
     * 统计口径说明
     *
     * Table:     T_ZBAA_TARGET
     * Column:    RANGE_NAME
     * Nullable:  true
     */
    @ApiModelProperty("统计口径说明")
    @Column(name = "RANGE_NAME")
    private String rangeName;

    /**
     * 定性/定量/值集
     *
     * Table:     T_ZBAA_TARGET
     * Column:    QUANTITY_FLAG
     * Nullable:  true
     */
    @ApiModelProperty("定性/定量/值集")
    @Column(name = "QUANTITY_FLAG")
    private String quantityFlag;

    /**
     * 计量单位
     *
     * Table:     T_ZBAA_TARGET
     * Column:    UNIT
     * Nullable:  true
     */
    @ApiModelProperty("计量单位")
    @Column(name = "UNIT")
    private String unit;

    /**
     * 指标公式
     *
     * Table:     T_ZBAA_TARGET
     * Column:    TARGET_FORMULA
     * Nullable:  true
     */
    @ApiModelProperty("指标公式")
    @Column(name = "TARGET_FORMULA")
    @Excel(name="指标公式")
    private String targetFormula;

    /**
     * 修改标识（Y-是；N-否）
     *
     * Table:     T_ZBAA_TARGET
     * Column:    UPDATE_FLAG
     * Nullable:  true
     */
    @ApiModelProperty("修改标识（Y-是；N-否）")
    @Column(name = "UPDATE_FLAG")
    private String updateFlag;

    /**
     * 状态（01-草稿；02-提交；10-有效；20-停用）
     *
     * Table:     T_ZBAA_TARGET
     * Column:    STATUS
     * Nullable:  true
     */
    @ApiModelProperty("状态（01-草稿；02-提交；10-有效；20-停用）")
    @Column(name = "STATUS")
    private String status;

    /**
     * 状态说明
     *
     * Table:     T_ZBAA_TARGET
     * Column:    STATUS_NAME
     * Nullable:  true
     */
    @ApiModelProperty("状态说明")
    @Column(name = "STATUS_NAME")
    private String statusName;

    /**
     * 提交部门
     *
     * Table:     T_ZBAA_TARGET
     * Column:    SUBMIT_COMP_CODE
     * Nullable:  true
     */
    @ApiModelProperty("提交部门")
    @Column(name = "SUBMIT_COMP_CODE")
    private String submitCompCode;

    /**
     * 提交部门名称
     *
     * Table:     T_ZBAA_TARGET
     * Column:    SUBMIT_COMP_NAME
     * Nullable:  true
     */
    @ApiModelProperty("提交部门名称")
    @Column(name = "SUBMIT_COMP_NAME")
    private String submitCompName;

    /**
     * 提交人
     *
     * Table:     T_ZBAA_TARGET
     * Column:    SUBMIT_USER_CODE
     * Nullable:  true
     */
    @ApiModelProperty("提交人")
    @Column(name = "SUBMIT_USER_CODE")
    private String submitUserCode;

    /**
     * 提交人姓名
     *
     * Table:     T_ZBAA_TARGET
     * Column:    SUBMIT_USER_NAME
     * Nullable:  true
     */
    @ApiModelProperty("提交人姓名")
    @Column(name = "SUBMIT_USER_NAME")
    private String submitUserName;

    /**
     * 备注
     *
     * Table:     T_ZBAA_TARGET
     * Column:    REMARK
     * Nullable:  true
     */
    @ApiModelProperty("备注")
    @Column(name = "REMARK")
    private String remark;

    /**
     * 排序
     *
     * Table:     T_ZBAA_TARGET
     * Column:    ROW_ORDER
     * Nullable:  true
     */
    @ApiModelProperty("排序")
    @Column(name = "ROW_ORDER")
    private Integer rowOrder;

    /**
     * 定性/定量中文
     *
     * Table:     T_ZBAA_TARGET
     * Column:    QUANTITY_FLAG_C
     * Nullable:  true
     */
    @ApiModelProperty("定性/定量中文")
    @Column(name = "QUANTITY_FLAG_C")
    private String quantityFlagC;

    /**
     * 定性维护描述
     *
     * Table:     T_ZBAA_TARGET
     * Column:    QUAL_DESC
     * Nullable:  true
     */
    @ApiModelProperty("定性维护描述")
    @Column(name = "QUAL_DESC")
    private String qualDesc;

    /**
     * 预算标识
     *
     * Table:     T_ZBAA_TARGET
     * Column:    FORECAST_FLAG
     * Nullable:  true
     */
    @ApiModelProperty("预算标识")
    @Column(name = "FORECAST_FLAG")
    private String forecastFlag;

    /**
     * 值集编码
     *
     * Table:     T_ZBAA_TARGET
     * Column:    DD_TYPE_CODE
     * Nullable:  true
     */
    @ApiModelProperty("值集编码")
    @Column(name = "DD_TYPE_CODE")
    private String ddTypeCode;

    /**
     * 值集名称
     *
     * Table:     T_ZBAA_TARGET
     * Column:    DD_TYPE_NAME
     * Nullable:  true
     */
    @ApiModelProperty("值集名称")
    @Column(name = "DD_TYPE_NAME")
    private String ddTypeName;

    /**
     * 来源系统指标编号
     *
     * Table:     T_ZBAA_TARGET
     * Column:    SOURCE_TARGET_NO
     * Nullable:  true
     */
    @ApiModelProperty("来源系统指标编号")
    @Column(name = "SOURCE_TARGET_NO")
    private String sourceTargetNo;

    /**
     * N-内部指标/W-外部指标
     *
     * Table:     T_ZBAA_TARGET
     * Column:    RISK_SOURCE
     * Nullable:  true
     */
    @ApiModelProperty("N-内部指标/W-外部指标")
    @Column(name = "RISK_SOURCE")
    private String riskSource;

    /**
     * N-内部指标/W-外部指标
     *
     * Table:     T_ZBAA_TARGET
     * Column:    RISK_SOURCE_NAME
     * Nullable:  true
     */
    @ApiModelProperty("N-内部指标/W-外部指标")
    @Column(name = "RISK_SOURCE_NAME")
    private String riskSourceName;

    /**
     * 所属单位
     *
     * Table:     T_ZBAA_TARGET
     * Column:    COMP_CODE
     * Nullable:  true
     */
    @ApiModelProperty("所属单位")
    @Column(name = "COMP_CODE")
    private String compCode;

    /**
     * 所属单位名称
     *
     * Table:     T_ZBAA_TARGET
     * Column:    COMP_NAME
     * Nullable:  true
     */
    @ApiModelProperty("所属单位名称")
    @Column(name = "COMP_NAME")
    private String compName;

    /**
     * 是否工作日（Y-是；N-否）
     *
     * Table:     T_ZBAA_TARGET
     * Column:    IS_WORK_DAY
     * Nullable:  true
     */
    @ApiModelProperty("是否工作日（Y-是；N-否）")
    @Column(name = "IS_WORK_DAY")
    private String isWorkDay;

    /**
     * 管理单位编码
     *
     * Table:     T_ZBAA_TARGET
     * Column:    MANAGE_COMP_CODE
     * Nullable:  true
     */
    @ApiModelProperty("管理单位编码")
    @Column(name = "MANAGE_COMP_CODE")
    private String manageCompCode;

    /**
     * 管理单位名称
     *
     * Table:     T_ZBAA_TARGET
     * Column:    MANAGE_COMP_NAME
     * Nullable:  true
     */
    @ApiModelProperty("管理单位名称")
    @Column(name = "MANAGE_COMP_NAME")
    @Excel(name="管理单位名称")
    private String manageCompName;

}